package com.yf.esms.model.entries;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author 99698
 */
@Data
@ApiModel("/商品信息")
public class GoodsInfo {
    @ApiModelProperty(value = "商品分类id",required = true,example = "1006081655")
    @NotNull(message = "商品分类id(catId)不能为空！")
    private Integer catId;
    @ApiModelProperty(value = "商品id spu",required = true,example = "5987")
    @NotNull(message = "商品id(commonId)不能为")
    private Integer commonId;
    @ApiModelProperty(value = "商品是否参加促销0不参加,1砍价,2秒杀,3限时折扣",required = true,example = "0")
    private Integer commonIsXian;
    @ApiModelProperty(value = "商品名称",required = true,example = "稳健医疗 医用防护口罩 N95 折叠式 1只/袋")
    private String commonName;
    @ApiModelProperty(value = "活动详情",required = false,example = "")
    private String activityGoodsDetail;
    @ApiModelProperty(value = "商品广告词",required = false,example = "")
    private String commonPromotionTips;
    @ApiModelProperty(value = "成本价",required = true,example = "8")
    private BigDecimal goodsCostPrice;
    @ApiModelProperty(value = "商品id sku",required = true,example = "6309")
    private Integer goodsId;
    @ApiModelProperty(value = "市场价",required = true,example = "9")
    private BigDecimal goodsMarketPrice;
    @ApiModelProperty(value = "最大购买数量",required = true,example = "100")
    private Integer goodsMaxSale;
    @ApiModelProperty(value = "商品价格",required = true,example = "8")
    private Integer goodsPrice;
    @ApiModelProperty(value = "商品是否家用 家用的话价格则所有可见 1是，0否 默认0",required = true,example = "1")
    private Integer householdIsGoods;
    @ApiModelProperty(value = "对于认证会员 价格是否可见  1是 0否 默认0",required = true,example = "1")
    private Integer priceIsVisible;
    @ApiModelProperty(value = "用于判断前端如何显示价格.如:0-正常显示价格 1-认证可见 2-询价可见 3-登录可见",required = true,example = "1")
    private Integer priceMsg;
    @ApiModelProperty(value = "是否自营商品",required = true,example = "1")
    private String shopSelfSupport;
    @ApiModelProperty(value = "厂家",required = true,example = "Ormco Corporation")
    private String manufacturer;
    @ApiModelProperty(value = "商品图片",required = true,example = "http://js002.oss-cn-shanghai.aliyuncs.com/batchUpload/shopid%3D159414%26time%3D1631954289681%26id%3D39628e7d-a676-71cc-9de6-1e4fd1df201f.jpeg?OSSAccessKeyId=LTAI4FzhEC8TMccyELqJPVME&Expires=1000001631954300&Signature=9MLaWEGziqJWsw2WtPR9JSCsMJk%3D")
    private String goodsImage;
}
